package com.koron.ticket.line.work.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum TicketStatus {

    /**
     * 与数据字典ticket_work_status保持一致
     */
    WRITE(1, "填写"),
    SIGN(2, "待签发"),
    COUNTERSIGN(3,"待会签"),
    ACCEPT(4, "待接受"),
    PERMIT(5, "待许可"),
    EXECUTE(6, "工作执行"),
    WORK_END(7, "工作待终结"),
    TICKET_END(8, "工作票待终结"),
    ARCHIVED(9, "已归档"),
    INVALID(10, "已作废");

    /**
     * 工作票状态
     */
    private Integer status;
    /**
     * 工作票状态名称
     */
    private String name;

    public Integer getStatus() {
        return status;
    }
}
